var input=document.getElementsByClassName("input");
function loadXMLDoc() {
   var text1=input[0].value;
   var text2=input[1].value;
   if(text1=="wangzezheng"&&text2=="123456"){
   window.location.assign("./main.html");
   }
   else if(text1==""||text2==""){alert("您未输入账号或密码");}
   else{alert("您输入的账号或密码错误");}
   // console.log(location.href);
}
input[1].addEventListener("keyup",function(event){
  if(event.keyCode==13){
      loadXMLDoc();
      }
});


